#include <xp/utl/isbn.h>
#include <xp/bas/stdio.h>

int xp_main (int argc, xp_char_t* argv[])
{
	if (argc != 2) {
		xp_fprintf (xp_stderr, XP_TEXT("usage: %s isbn\n"), argv[0]);	
		return -1;
	}	

	if (xp_is_isbn_valid(argv[1])) 
		xp_printf (XP_TEXT("%s is valid\n"), argv[1]);
	else xp_printf (XP_TEXT("%s is invalid\n"), argv[1]);
	return 0;
}
